<?php
class Paragraph extends Text {
	
	private $text;
	
	public function __construct($elementId, $text) {
		
		parent::__construct($elementId);
		
		$this->text = $text;
	}
	
	protected function renderElement() {
		
		echo '<p ', $this->formatAttributes(), '>', $this->text, '</p>';
	}
}